Regex = {};
//邮箱验证
Regex.email = /^[a-zA-Z0-9]+@([a-zA-Z0-9]+.){1}[a-zA-Z0-9]+$/;
//手机验证
Regex.mobile = /^1[0-9]{10}$/;
//日期时间验证
Regex.datetime = /^((\d{4}-(0[1-9]{1}|1[012]{1})-(0[1-9]{1}|[12]{1}[0-9]{1}|3[01]{1}))|(\d{4}\/(0[1-9]{1}|1[012]{1})\/(0[1-9]{1}|[12]{1}[0-9]{1}|3[01]{1}))) ([01]{1}\d{1}|2[123]{1}):[0-5]{1}\d{1}:[0-5]{1}\d{1}$/;
//日期验证
Regex.date = /^((\d{4}-(0[1-9]{1}|1[012]{1})-(0[1-9]{1}|[12]{1}[0-9]{1}|3[01]{1}))|(\d{4}\/(0[1-9]{1}|1[012]{1})\/(0[1-9]{1}|[12]{1}[0-9]{1}|3[01]{1})))$/;
//时间验证
Regex.time = /^([01]{1}\d{1}|2[123]{1}):[0-5]{1}\d{1}:[0-5]{1}\d{1}$/;
//价格验证
Regex.currency = /^[0-9]+(.[0-9]{2})?$/;
//自然数验证
Regex.naturalNumber = /^[1-9]+$/;
//整数验证
Regex.integer = /^(-)?\d+$/;
//正整数验证
Regex.positiveInteger = /^\d+$/;
//负整数验证
Regex.negativeInteger = /^-\d+$/;
//用户名验证
Regex.username = /^[\w\d]{6,16}$/;
//省份证验证
Regex.idcard = /^(([1-9]\d{5}[1-9]\d{3}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}[0-9 x X *])|([1-9]\d{7}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}))$/;
//链接验证
Regex.url = /^http[s]?:\/\/.*$/;
//FPT验证
Regex.ftp = /^ftp:\/\/.*$/;
